extends Resource


class_name Attribute
"""
属性词条
"""


signal event_property_changed(attr: Attribute, property: String, new_value: int)


## 属性值
@export var value: int = 0:
    set(v):
        value = __set_value("value", v)
        event_property_changed.emit(self, "value", value)


func __set_value(property: String, new_value: int) -> int:
    return new_value

func pick() -> int:
    return value
